package edu.dev.tfile.service;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import edu.dev.tfile.common.Utils;

public class UserListService extends HttpServlet {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3946554029590029334L;

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		String pcStr = Utils.getConfig("pc_list");
		String vdiStr = Utils.getConfig("vdi_list");
		String rs = "{\"pc\":" + pcStr + ",\"vdi\":" + vdiStr + "}";
		resp.setContentType("text/html;charset=utf-8");
		resp.setStatus(HttpServletResponse.SC_OK);
		resp.getWriter().println(rs);
	}

}
